#define LED1 (1<<10)
#define LED2 (1<<12)
#define LED3 (1<<14)
#define LED4 (1<<16)

volatile long * gpbcon = (volatile long *) 0x56000010;
volatile long * gpbdat = (volatile long *) 0x56000014;

void led_init()
{
	*gpbcon |=(LED1|LED2|LED3|LED4);
	*gpbdat |=((1<<5)|(1<<6)|(1<<7)|(1<<8));
}

void delay(int count)
{
	while(count--);
}

int main()
{
	while(1)
	{
		*gpbdat |= ((1<<5)|(1<<6)|(1<<7)|(1<<8));
		delay(1000000);
		*gpbdat &=(~((1<<5)|(1<<6)|(1<<7)|(1<<8)));
		delay(1000000);
	}
	return 0;
}
